<!--%import("../../tpl/filter/register_ad.xml")-->
<!--@if($grant->register_ad)-->
<div class="AdRegister">
	<form method="post" onsubmit="return procFilter(this, register_ad)">
	<input type="hidden" name="mid" value="{$mid}" />
	<input type="hidden" name="vid" value="{$vid}" />

	<dl>
		<!--@if($module_info->ad_type == 'text')-->
		<dd>{$lang->ad_content} : <input type="text" name="ad_content" value="" class="inputTypeText w400" /></dd>
		<!--@elseif($module_info->ad_type == 'image')-->
		<dd>{$lang->site_name} : <input type="text" name="site_name" value="" class="inputTypeText w400" /></dd>
		<dd>
			{$lang->banner_image} : <input type="text" name="banner_image" class="inputTypeText w400" />
			<blockquote class="descriptionText">
				<p>{$lang->about_banner_image}</p>
			</blockquote>
		</dd>
		<!--@end-->
		<!--@if($ad_time_range)-->
		<dd>
			{$lang->ad_time} :
			<select name="ad_time" class="itemPicker">
				<!--@if($grant->unlimited_ad)--><option value="-1">{$lang->unlimited}</option><!--@end-->
				<!--@if(is_array($ad_time_range) && count($ad_time_range))-->
				<!--@foreach($ad_time_range as $key => $val)-->
				<option value="{$val['time']}">{$val['title']}</option>
				<!--@endforeach-->
				<!--@else-->
				<!--@end-->
			</select>
		</dd>
		<!--@end-->
		<!--@if($grant->highlight_ad && $module_info->use_option != '')-->
		<dd class="AdOption">
			{$lang->ad_option} : 
			<!--@if($grant->manager)--><input type="checkbox" name="is_notice" id="is_notice" value="Y" /><label for="is_notice"><strong style="color:#f42126">{$lang->notice}</strong></label> <!--@end-->
			<input type="checkbox" name="used_style" id="use_bold" value="bold" /><label for="use_bold"><strong>{$lang->bold}</strong></label> 
			<input type="checkbox" name="used_style" id="use_underline" value="underline" /><label for="use_underline"><u>{$lang->underline}</u></label> 
			<input type="checkbox" name="used_style" id="use_italic" value="italic" /><label for="use_italic"><i>{$lang->italic}</i></label>
		</dd>
		<!--@if($module_info->use_color == 'Y')-->
		<dd>
		{@ $AdColorRange = explode(',',$module_info->ad_color_range)}
			{$lang->text_color} :
			<select name="ad_color" class="colorPicker">
				<!--@foreach($AdColorRange as $key => $val)-->
				<option value="{$val}" style="color:{$val};background-color:{$val};">{$val}</option>
				<!--@endforeach-->
			</select>
		</dd>
		<!--@end-->
		<!--@if($module_info->use_bgcolor == 'Y')-->
		<dd>
		{@ $AdBgColorRange = explode(',',$module_info->ad_bgcolor_range)}
			{$lang->bg_color} :
			<select name="ad_bgcolor" class="colorPicker">
				<!--@foreach($AdBgColorRange as $key => $val)-->
				<option value="{$val}" style="color:{$val};background-color:{$val};">{$val}</option>
				<!--@endforeach-->
			</select>
		</dd>
		<!--@end-->
		<!--@end-->
		<!--@if($grant->url_link)-->
		<dd>
			{$lang->url} : <input type="text" name="url" value="" class="inputTypeText w300" />
			<select name="url_target" class="itemPicker">
				<option value="_blank">{$lang->new_window}</option>
				<option value="_self">{$lang->current_window}</option>
			</select>
		</dd>
		<!--@end-->
		<dd><!--@if($act == 'dispAdRegister')--><a href="{getUrl('act','')}" class="button"><span>{$lang->cmd_back}</span></a> <!--@end--><span class="button black"><input type="submit" value="{$lang->ad_reg}" /></span></dd>
	</dl>
	</form>
</div>
<!--@end-->